package com.tt.aile.item.mapper;

import com.tt.aile.item.pojo.Spu;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 86176 shkstrat
 * @date 2020/10/6 - 16:36
 */
public interface SpuMapper extends Mapper<Spu> {

    @Update("UPDATE tb_spu SET saleable = #{saleable} WHERE id = #{id}")
    void putGoodsOnOrDownByspuId(boolean saleable, long id);
}
